﻿using WeDonekRpc.Helper.Validate;

namespace Basic.FlowRemoteModel.FlowApp.Model
{
    public class FlowAppSet
    {
        [NullValidate("flow.app.name.null")]
        [LenValidate("flow.app.name.len", 2, 50)]
        public string AppName { get; set; }

        [LenValidate("flow.app.show.len", 0, 100)]
        public string AppShow { get; set; }

        [NullValidate("flow.app.classify.null")]
        [LenValidate("flow.app.classify.error", 2, 10)]
        public string AppClassify { get; set; }

        [EnumValidate("flow.app.type.error", typeof(FlowAppType))]
        public FlowAppType AppType { get; set; }
        [LenValidate("flow.app.show.len", 0, 300)]
        public string TitleTemplate
        {
            get;
            set;
        }
        public long? FlowId { get; set; }

        [LenValidate("flow.ver.len", 0, 20)]
        public string FlowVer { get; set; }
    }
}
